<!--
    Document   : LoginView
    Created on : 12/12/2010, 11:22:52 PM
    Author     : Ing. Javier Silva Pérez
-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:ice="http://www.icesoft.com/icefaces/component"
	template="./templates/page-template.xhtml">
	<ui:define name="page-content">
		<div style="padding-left: 150px">
			<ice:panelGroup styleClass="exampleBox">
				<center>
					<ice:panelGrid columns="3" cellpadding="3">
						<ice:outputLabel
							value="#{msgs['page.LoginView.txtNombreUsuario.text']}"
							styleClass="subtituloPag" for="j_username" />
						<ice:inputText value="#{loginViewBean.usuarioNombre}"
							id="j_username" style="width: 200px" />
						<ice:message style="color: red;" id="txtNombreUsuarioError_Login"
							for="j_username" />

						<ice:outputLabel
							value="#{msgs['page.LoginView.txtPassword.text']}"
							styleClass="subtituloPag" for="j_password" />
						<ice:inputSecret value="#{loginViewBean.usuarioPass}"
							id="j_password" style="width: 200px" redisplay="true" />
						<ice:message style="color: red;" id="txtPasswordError_Login"
							for="j_password" />
					</ice:panelGrid>
					<ice:panelGrid columns="2" cellpadding="10">
						<ice:commandButton id="btnEntrar"
							image="/resources/images/buttons/btnEntrar.png" value="Entrar"
							action="#{loginViewBean.login}"/>
						<ice:commandButton id="btnRegistro"
							image="/resources/images/buttons/btnRegistro.png"
							value="Registro"
						 	action="#{navigation.enterRegistro}"/>
					</ice:panelGrid>
					<ice:message style="color: red;" id="btnAceptarError"
						for="btnEntrar"/>
				</center>
			</ice:panelGroup>
		</div>
	</ui:define>
</ui:composition>